package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


//TableName得和数据库表的名字一样
@TableName("appointment")
//@Data注解 简化get和set方法
@Data
public class Appointment extends BaseEntity{
    @TableId(value = "id",type = IdType.AUTO)  //实现自增;如果主键名不是id,则需要补充:value='userId'
//    private Integer id;
    private String userName;
    private String museumName;
    private String appointmentDate;
    private String session;
    private String password;
    private String phone;
    private String state;
    private String email;

}

